package com.pdd.service;

import com.pdd.beans.Address;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 地址业务接口
 */
public interface AddressService {



    /**
     * 添加地址信息
     * @param address
     * @return
     */
    public boolean addAddress(Address address);

    /**
     * 删除地址信息
     * @return
     */
    public boolean delAddress(@Param("id") int id);

    /**
     * 修改用户信息
     * @param address
     * @return
     */
    public boolean uplAddress(Address address);

    /**
     * 查询所有地址信息
     * @return
     */
    public List<Address> getAddress();

    /**
     * 根据ID查询地址信息
     * @return
     */
    public Address getById(int id);
}
